package com.yanti.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yanti.domain.ResponseResult;
import com.yanti.domain.dto.UserAnswerSubmitDTO;
import com.yanti.domain.entity.UserCommitResults;
import com.yanti.domain.vo.SubjectStudyTimeVo;

import java.util.List;


/**
 * (UserExamResults)表服务接口
 *
 * @author luo
 * @since 2024-12-11 19:45:19
 */
public interface UserCommitResultsService extends IService<UserCommitResults> {

    ResponseResult userUpLoadAnswer(UserAnswerSubmitDTO submitDTO);

    // 暂存用户答案接口
    ResponseResult userTemporarySaveAnswer(UserAnswerSubmitDTO submitDTO);

    boolean isChapterCompleted(String userId, String subjectId, String chapterId);

    List<SubjectStudyTimeVo> getSubjectStudyTimeToday(String uid);

    ResponseResult getTemporaryAnswerDetails(String uid, String chapterId);
}

